package com.stone.back.dish.entity;

import java.util.Date;

import com.stone.back.user.entity.BfUser;
import com.stone.common.util.DateUtil;

/**
 * 菜品
 * @author Stone P
 */
public class BfDish implements java.io.Serializable {

	// Fields

	private Integer dishid;
	private Integer dishtypeid;
	private String dishchname;
	private String dishenname;
	private Float price;
	private String photo;
	private String remark;
	private Integer status = 1;
	private Date createdate;
	private Integer createuserid;
	private BfUser createuser;
	private BfDishType dishtype;

	// Constructors

	/** default constructor */
	public BfDish() {
	}

	/** full constructor */
	public BfDish(String dishchname, String dishenname, Float price, Integer dishtypeid, String photo, String remark,
			Integer status, Date createdate, Integer createuserid) {
		this.dishchname = dishchname;
		this.dishenname = dishenname;
		this.price = price;
		this.dishtypeid = dishtypeid;
		this.photo = photo;
		this.remark = remark;
		this.status = status;
		this.createdate = createdate;
		this.createuserid = createuserid;
	}

	// Property accessors

	public Integer getDishid() {
		return this.dishid;
	}

	public void setDishid(Integer dishid) {
		this.dishid = dishid;
	}

	public String getDishchname() {
		return dishchname;
	}

	public void setDishchname(String dishchname) {
		this.dishchname = dishchname;
	}

	public String getDishenname() {
		return dishenname;
	}

	public void setDishenname(String dishenname) {
		this.dishenname = dishenname;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Integer getDishtypeid() {
		return dishtypeid;
	}

	public void setDishtypeid(Integer dishtypeid) {
		this.dishtypeid = dishtypeid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	
    public String getCreatedateStr() {
    	if(null == this.createdate) {
    		return "";
    	} else {
    		return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, this.createdate);
    	}
    }

	public Integer getCreateuserid() {
		return this.createuserid;
	}

	public void setCreateuserid(Integer createuserid) {
		this.createuserid = createuserid;
	}

	public BfUser getCreateuser() {
		return createuser;
	}

	public void setCreateuser(BfUser createuser) {
		this.createuser = createuser;
	}

	public BfDishType getDishtype() {
		return dishtype;
	}

	public void setDishtype(BfDishType dishtype) {
		this.dishtype = dishtype;
	}

}